home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 August: Tool Chest / Dev.CD Aug 95 TC / Dev.CD Aug 95 TC.toast / Tool Chest / Development Tools & Languages / Dylan Related / Marlais / Marlais 0.5.9-portable sources / gc / README.Mac < prev    next >
Encoding:
Text File  |  1995-03-15  |  1.7 KB  |  51 lines  |  [TEXT/ttxt]

  1. README.Mac
  2. ----------
  3.  
  4. v4.3 of the collector now runs under Symantec C++/THINK C v7.0.4, and
  5. Metrowerks C/C++ v4.5 both 68K and PowerPC. Project files are provided
  6. to build and test the collector under both development systems.
  7.  
  8. Configuration
  9. -------------
  10.  
  11. To configure the collector, under both development systems, a prefix file
  12. is used to set preprocessor directives. This file is called "MacOS_config.h".
  13. Also to test the collector, "MacOS_Test_config.h" is provided.
  14.  
  15. Testing
  16. -------
  17.  
  18. To test the collector (always a good idea), build one of the gctest projects,
  19. gctest.π (Symantec C++/THINK C), mw/gctest.68K.π, or mw/gctest.PPC.π. The
  20. test will ask you how many times to run; 1 should be sufficient.
  21.  
  22. Building 
  23. --------
  24.  
  25. For your convenience project files for the major Macintosh development
  26. systems are provided.
  27.  
  28. For Symantec C++/THINK C, you must build the two projects gclib-1.π and
  29. gclib-2.π. It has to be split up because the collector has more than 32k
  30. of static data and no library can have more than this in the Symantec
  31. environment. (Future versions will probably fix this.)
  32.  
  33. For Metrowerks C/C++ 4.5 you build gc.68K.π/gc.PPC.π and the result will
  34. be a library called gc.68K.lib/gc.PPC.lib.
  35.  
  36. Using
  37. -----
  38.  
  39. Under Symantec C++/THINK C, you can just add the gclib-1.π and gclib-2.π
  40. projects to your own project. Under Metrowerks, you add gc.68K.lib or
  41. gc.PPC.lib and two additional files. You add the files called datastart.c
  42. and dataend.c to your project, bracketing all files that use the collector.
  43. See mw/gctest.π for an example.
  44.  
  45. Include the projects/libraries you built above into your own project,
  46. #include "gc.h", and call GC_malloc. You don't have to call GC_free.
  47.  
  48.  
  49. Patrick C. Beard
  50. January 4, 1995
  51.